package com.yonyou.pmclouds.workConnect.service.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.workConnect.entity.WorkConReceiverVO;
import com.yonyou.pmclouds.workConnect.entity.WorkConnectVO;

public interface WorkConnectMaintain {
	/**
	 * 新增单据时，根据存草稿或提交，需手动赋值单据状态，默认为待接收
	 * @param workConnectVO
	 * @return
	 * @throws BusinessException
	 */
    WorkConnectVO addWorkConnect(WorkConnectVO workConnectVO) throws BusinessException;

    String deleteWorkConnect(String pk_WorkConnect) throws BusinessException;

    WorkConnectVO updateWrokConnect(WorkConnectVO workConnectVO) throws BusinessException;
	/**
	 * 接受单据【修改单据状态】待接收->已接收
	 * @param pk_workconnect
	 * @return
	 * @throws BusinessException
	 */
    WorkConnectVO updateBillStatus(String pk_workconnect, WorkConReceiverVO receiverVO) throws BusinessException;
}
